package design.Test5decorator;

/**
 * Created by majian8 on 2020/4/9.
 */
public class SugarDecorator extends Decorator {

    public SugarDecorator(Component component) {
        super(component);
    }

    @Override
    public String cost() {
        return super.cost()+" sugar--->2元 ";
    }

    @Override
    public String getDesc() {
        return " add sugar";
    }
}
